<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /**
         * 打印原型链
         **/
        function printPrototypeChain(obj){
            debugger
            let proto = Object.getPrototypeOf(obj);// obj.__proto__
            while(proto!==null){
                console.log(proto);
                proto = Object.getPrototypeOf(proto);
            }
        }
        printPrototypeChain(document.body);
    </script>
</body>
</html>